<style type="text/css">
  .list-search ul li{ width: 100px; float: left; margin-left: 5px;}
</style>
<div class="list-search">
  <form action="{:U(MODULE_NAME.'/Access/activityaccess',array('id'=>$activityID))}" method="get">
    <table class="search">
      <tbody>
        <tr>
          <td style="width:80px;">活动：</td>
          <td>
            <select name="id" style="padding:5px 10px;">
              <option value="0" <if condition="$activityID eq '0' ">selected</if>>请选择</option>
              <foreach name="activitylist" item="vo">
              <option value="{$vo.id}" <if condition="$activityID eq $vo['id'] ">selected</if>>{$vo.title}</option>
              </foreach>
            </select>
          </td>
        </tr>
        <tr>
          <td style="width:80px;">来源：</td>
          <td>
            <select name="channelID" style="padding:5px 10px;">
              <option value="0" <if condition="$channelID eq '0' ">selected</if>>请选择</option>
              <foreach name="channellist" item="vo">
              <option value="{$vo.id}" <if condition="$channelID eq $vo['id'] ">selected</if>>{$vo.title}</option>
              </foreach>
            </select>
          </td>
        </tr>
        <tr>
            <td style="width:80px;">初访日期：</td>
            <td>
                <input class="input-s" type="text" onClick="WdatePicker()" name="startTime" value="{$startTime}" readonly="readonly">
                    -
                <input class="input-s" type="text" onClick="WdatePicker()" name="endTime" value="{$endTime}" readonly="readonly">
            </td>
        </tr>
        <tr>
          <td style="width:80px;">上游页：</td>
          <td>
            <input type="text" class="input-m" name="sourceUrl" value="{$sourceUrl}">
          </td>
        </tr>
        <tr>
          <td style="width:80px;">落地页：</td>
          <td>
            <input type="text" class="input-m" name="webUrl" value="{$webUrl}">
          </td>
        </tr>
        <tr>
          <td style="width:80px;">访客行为：</td>
          <td>
            <ul>
              <li><input type="checkbox" value="全部" <if condition="$behaviorArr eq false">checked</if>>全部行为</li>
              <li><input type="checkbox" value="8" name="behavior[]" <if condition="in_array('8',$behaviorArr)">checked</if>>注册</li>
              <li><input type="checkbox" value="10,11" name="behavior[]" <if condition="in_array('10,11',$behaviorArr)">checked</if>>下单</li>
            </ul>
          </td>
        </tr>
        <tr>
          <td style="width:80px;">访客平台：</td>
          <td>
            <ul>
              <li><input type="checkbox" value="全部" <if condition="$typeArr eq false">checked</if> >全部平台</li>
              <li><input type="checkbox" value="0" name="type[]" <if condition="in_array('0',$typeArr)">checked</if>>PC</li>
              <li><input type="checkbox" value="1" name="type[]" <if condition="in_array('1',$typeArr)">checked</if>>移动</li>
            </ul>
          </td>
        </tr>
        <tr>
          <td></td>
          <td>
          <input type="submit"  value="查询"  style="padding: 6px 14px; border: 0px;background-color: #6ec673 ;color:#FFF;" ></td>
        </tr>
      </tbody>
    </table>
  </form>
</div>

<div class="infobox mt15 clearfx" style="margin-bottom: 30px;">
  <span class="info-span"><strong>{$totalArr.totalPV}</strong><br/>浏览量(PV)</span>
    <span class="info-span"><strong>{$totalArr.totalUV}</strong><br/>访问量(UV)</span>
    <span class="info-span"><strong>{$totalArr.totalAccessSpeedRate}</strong><small>s</small><br/>平均反映时长</span>
    <span class="info-span"><strong>{$totalArr.totalJumpNumRate}</strong><small>%</small><br/>落地页平均跳出率</span>
    <span class="info-span"><strong>{$totalArr.totalUserNum}</strong><small></small><br/>注册量</span>
    <span class="info-span"><strong>{$totalArr.totalUserRate}</strong><small>%</small><br/>注册转化率</span>
    <span class="info-span"><strong>{$totalArr.totalOrderNum}</strong><small></small><br/>下单量</span>
    <span class="info-span"><strong>{$totalArr.totalOrderRate}</strong><small>%</small><br/>订单转化率</span>
</div>

<div class="operate2">
  <ul>
    <li>访问详情</li>
    <li><span class="icon-export01"></span>导出Excel</li>
  </ul>
  <div class="clear"></div>
</div>
<table class="list">
		<thead>
  		<tr>
        <th>访客ID</th>
        <th>活动名称</th>
        <th>来源渠道</th>
        <th>上游页面</th>
        <th>平台</th>
        <th>浏览量</th>
        <th>访问时间</th>
        <th>跳出时间</th>
        <th>注册</th>
        <th>下单</th>
      </tr>
		</thead>
         <tbody>
		<foreach name='list' item='v'>
        <tr>
           <td style="text-align: center;">{$v.id}</td>
           <td style="text-align: center;">{$v.activityTitle}</td>
           <td style="text-align: center;">{$v.sourceName}</td>
           <td style="text-align: center;"><a href="{$v.sourceUrl}">{$v.sourceUrl|subtext = 30}</a></td>
           <td style="text-align: center;"><if condition="$v['type'] eq '1'" >移动端<else />PC端</if></td>
           <td style="text-align: center;">{$v.accessNum}</td>
           <td style="text-align: center;">{$v.createDate}</td>
           <td style="text-align: center;">{$v.jumpDate}</td>
           <td style="text-align: center;"><if condition="$v['isUser'] eq '1'" >是<else />否</if></td>
           <td style="text-align: center;">{$v.orderNum}</td>
       </tr>
      </foreach>
 </tbody>
</table>
<div class="page" style="clear: both;">{$page}</div>